import request from "../../utils/request";

export function getDailyPlan(params) {
  return request({
    url: "/plan/daily/list",
    method: "get",
    params,
  });
}

export function addDailyPlan(data) {
  return request({
    url: "/plan/daily/add",
    method: "post",
    data,
  });
}

export function updateDailyPlan(data) {
  return request({
    url: "/plan/daily/update",
    method: "put",
    data,
  });
}

export function getDailyTotal(params) {
  return request({
    url: "/plan/daily/total",
    method: "get",
    params,
  });
}

export function getThought(params) {
  return request({
    url: "/plan/daily/thought",
    method: "get",
    params,
  });
}

export function commitThought(data) {
  return request({
    url: "/plan/daily/thought",
    method: "put",
    data,
  });
}

export function sqlTest(params) {
  return request({
    url: "/permission/sql/test",
    method: "get",
    params,
  });
}
